package cn.itsource.org.service;


import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.org.domain.Employee;

import java.util.List;

public interface IEmployeeService extends IBaseService<Employee ,BaseQuery > {

    //查询所有的员工数据，不需要分页
    List<Employee> getAll();

    //分页查询
    PageList<Employee> getAllByPage(BaseQuery baseQuery);

    //新增或者修改
    void saveOrUpdate(Employee employee);

    //删除
    void delete(Long id);

    //查询所有的部门经理
    List<Employee> getManages();
}
